package com.ctbu.tourism.service;

import com.ctbu.tourism.api.ReportAPI;
import com.ctbu.tourism.entity.Report;
import jdk.nashorn.internal.ir.IdentNode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReportService {

    @Autowired
    ReportAPI reportAPI;

    public Integer addReportU(String content,Integer ouid,Integer uid){return reportAPI.addReportU(content,ouid,uid);}

    public Integer addReportP(String content,Integer pid,Integer uid){return reportAPI.addReportP(content,pid,uid);}

    public Integer deleteReport(Integer id){return reportAPI.deleteReport(id);}

    public List<Integer> getReportPostUIDs(Integer pid){return reportAPI.getReportPostUIDs(pid);}
    public List<Integer> getReportUserUIDs(Integer ouid){return reportAPI.getReportUserUIDs(ouid);}
    public List<Report> getReportUserStatus(){return reportAPI.getReportUserStatus();}
    public List<Report> getReportPostStatus(){return reportAPI.getReportPostStatus();}
    public Integer getReportPostSum(){return reportAPI.getReportPostSum();}
    public Integer getReportUserSum(){return reportAPI.getReportUserSum();}
    public Integer updateReportStatus(Integer id){return  reportAPI.updateReportStatus(id);}


}
